<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
        <title>宋濟川地產</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="<?php echo C('WEB_SITE_DESCRIPTION');?>">
<meta name="keywords" content="<?php echo C('WEB_SITE_KEYWORD');?>">
        <link href="/project/sjc/Public/Index/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <link href="/project/sjc/Public/Index/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
        <link href="/project/sjc/Public/Index/dist/css/swiper.min.css" rel="stylesheet" type="text/css"/>
        <link rel="stylesheet" href="/project/sjc/Public/Index/css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto[gallery2] main stylesheet" charset="utf-8" />
        <link href="/project/sjc/Public/Index/css/sjc.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<!-- 头部 -->
	        <div class="top"><div class="logo"><img src="/project/sjc<?php echo get_cover($logo['logo1'],$field = path);?>"></div></div>
        <div class="col-nav text-center">
            <div class="col-md-12 nav-btn text-center"><span>首頁</span><i class="fa fa-bars nav-ico"></i></div>
            <ul>
                <li class="active"><a href="<?php echo U('Index/index');?>">首頁</a></li>
                <li><a href="<?php echo U('About/index');?>">關於我們</a></li>
                 <li><a href="<?php echo U('Market/index');?>">市場動態</a></li>
                <li><a href="<?php echo U('Search/index');?>">樓盤信息</a></li>
                <li><a href="<?php echo U('Contact/index');?>">聯繫我們</a></li>
            </ul>
        </div>
	<!-- /头部 -->
	
	<!-- 主体 -->
	  <div class="add">
            <div class="swiper-container swiper1">
                    <div class="swiper-wrapper">
                        <?php if(is_array($ad)): foreach($ad as $key=>$val): ?><div class="swiper-slide"><img src="/project/sjc<?php echo (get_cover($val['pic'],'path')); ?>"></div><?php endforeach; endif; ?>
                    </div>
                   
                   <div class="swiper-button-next swiper-button-next1"><i class="fa fa-angle-right slide-ico"></i></div>
                   <div class="swiper-button-prev swiper-button-prev1"><i class="fa fa-angle-left slide-ico"></i></div>
            </div>
        </div>
         <div class="col-md-8 col-s-l text-center">
             <form id='form1' action="<?php echo U('Search/likesearch');?>" method='post'>
                  <input name="title" type="search" class="form-control search-input" placeholder="搜索你想要的樓盤">
                     <button type="submit" class="search-btn"><i class="fa fa-search search-ico"></i></button>
                     <p>
               
<!--                     <?php if(is_array($hots)): foreach($hots as $key=>$val): ?><a class='hots' href="javascript::"><?php echo ($val['title']); ?></a><?php endforeach; endif; ?>-->
                   
                     </p>
             </form>
                </div>
        <div class="search">
            <div class="container p-0 c-o-s">
               
                <div class="col-md-12 swiper-container swiper4 shop-li">
                    <div class="swiper-wrapper">
                    <?php if(is_array($shop)): foreach($shop as $key=>$val): ?><div class="slide-img swiper-slide">
                            <div class="col-md-6 col-sm-6 col-xs-6 shop-map h-400" data-toggle="modal" data-target="#myModal" data-map="<?php echo ($val['mapsite']); ?>" title="店鋪店址"> <img src="/project/sjc<?php echo (get_cover($val['pic'],'path')); ?>"></div>
                            <div class="col-md-6 col-sm-6 col-xs-6">
                                <div class="shop-title"><?php echo ($val['title']); ?></div>
                                <div class="shop-p"><?php echo ($val['content']); ?></div>
                            </div>
                         </div><?php endforeach; endif; ?>
                    </div>
                     <div class="swiper-pagination swiper-pagination4"></div>
                    <div class="swiper-button-next swiper-button-next4"><i class="fa fa-angle-right slide-ico"></i></div>
                   <div class="swiper-button-prev swiper-button-prev4"><i class="fa fa-angle-left slide-ico"></i></div>
                </div>
            </div> 
        </div>
        <div class="products">
            <div class="container">
                <div class="tab-content col-md-8 col-sm-8 col-xs-12">
                    <?php if(is_array($hothouse)): foreach($hothouse as $key=>$val): if($key == 0): ?><div id="<?php echo ($key); ?>" class="tab-pane fade in active">
                        <div class="h-478 load-i"><img src="/project/sjc<?php echo (get_cover($val['pic'],'path')); ?>"></div>
                    </div>  
                         <?php else: ?>
                               <div id="<?php echo ($key); ?>" class="tab-pane fade">
                        <div class="h-478 load-i"><img src="/project/sjc<?php echo (get_cover($val['pic'],'path')); ?>"></div>
                    </div><?php endif; endforeach; endif; ?>
                </div>
                <div class="h-478 col-md-4 col-sm-4 col-xs-12 load-h">
                        <ul>
                            <?php if(is_array($hothouse)): foreach($hothouse as $key=>$val): if($key == 0): ?><li class="active products-title-<?php echo ($key); ?> text-center col-md-12 col-xs-4"><a href="#<?php echo ($key); ?>" data-toggle="pill"><?php echo ($val['title']); ?></a></li>
                            <?php else: ?>
                            <li class="products-title-<?php echo ($key); ?> text-center col-md-12 col-xs-4"><a href="#<?php echo ($key); ?>" data-toggle="pill"><?php echo ($val['title']); ?> </a></li><?php endif; endforeach; endif; ?>
                        </ul>
                    </div>
                
            </div>
                
        </div>
        <div class="new fleft gallery clearfix">
            <div class="container">
                <?php if(!empty($new)): if(is_array($new)): foreach($new as $key=>$val): if($key == 0): ?><div class="col-md-6 col-sm-6 p-0">
                    <div class="new-img"><a href="/project/sjc<?php echo (get_cover($val['pic'],'path')); ?>"  rel="prettyPhoto[gallery2]"><img src="/project/sjc<?php echo (get_cover($val['pic'],'path')); ?>"></a></div>
                    <div class="left-bg new-bg">
                          <a href="<?php echo U('Market/detail','id='.$val['id']);?>" class="font-color"> 
                            <div><?php echo ($val['title']); ?></div>
                            <p><?php echo ($val['description']); ?></p>
                        </a>
                    </div>
                </div>
                          <?php else: ?>
                                <div class="col-md-6 col-sm-6 p-0">
                    <div class="new-img"><a href="/project/sjc<?php echo (get_cover($val['pic'],'path')); ?>"  rel="prettyPhoto[gallery2]"><img src="/project/sjc<?php echo (get_cover($val['pic'],'path')); ?>"></a></div>
                    <div class="right-bg new-bg">
                          <a href="<?php echo U('Market/detail','id='.$val['id']);?>" class="font-color"> 
                            <div><?php echo ($val['title']); ?></div>
                            <p><?php echo ($val['description']); ?></p>
                        </a>
                    </div>
                </div><?php endif; endforeach; endif; endif; ?>
            </div>               
        </div>
        <div class="about">
           <div class="swiper-container swiper2">

                    <!-- Carousel items -->
                    <div class="swiper-wrapper">
                        <?php if(is_array($pic)): foreach($pic as $key=>$val): ?><div class="swiper-slide bg-img">
                            <img src="/project/sjc/Public/Index/images/14699-7713094-1878399495-72d8a6519ca700c8408d6f9841ef12c4.jpg" style="margin-top: -10%;">
<!--                            <img src="/project/sjc<?php echo (get_cover($val,'path')); ?>">-->
                            <div class="bg-blue">
                                <div class="about-font text-center"><?php echo ($data_pic["title"]); ?></div>
                                <p>
                                   <?php echo ($data_pic["content"]); ?>
                                </p>
                            </div>
                        </div><?php endforeach; endif; ?>
                    </div>
<!--                    <div class="swiper-button-next swiper-button-next2 slide-btn"><i class="fa fa-angle-right slide-ico"></i></div>
                    <div class="swiper-button-prev swiper-button-prev2 slide-btn"><i class="fa fa-angle-left slide-ico"></i></div>-->
     </div>
            <div class="col-md-6 rental h-400">
                <h3 class="text-center">出租</h3>
                <?php if(is_array($house)): foreach($house as $key=>$val): if($val['selltype'] == 1): ?><div class="col-md-4 col-xs-4 col-sm-4">
                  <div class="h-150">   
                    <img src="/project/sjc<?php echo (get_cover($val['pic'],'path')); ?>">
                    <a href="<?php echo U('Search/detail','id='.$val['id']);?>" class="hover-style">
                        <h5><?php echo ($val['title']); ?></h5>
                        <p class="h-9"><?php echo ($val['description']); ?></p>
                    </a>
                 </div>
                </div><?php endif; endforeach; endif; ?>
           
    
            </div>
            <div class="col-md-6 sell h-400">
                <h3 class="text-center">出售</h3>
                         <?php if(is_array($house)): foreach($house as $key=>$val): if($val['selltype'] == 0): ?><div class="col-md-4 col-xs-4 col-sm-4">
                  <div class="h-150">   
                    <img src="/project/sjc<?php echo (get_cover($val['pic'],'path')); ?>">
                    <a href="<?php echo U('Search/detail','id='.$val['id']);?>" class="hover-style">
                        <h5><?php echo ($val['title']); ?></h5>
                        <p class="h-9"><?php echo ($val['description']); ?></p>
                    </a>
                 </div>
                </div><?php endif; endforeach; endif; ?>
           
            </div>
        </div>
<!--聯繫我們-->
	         <div class="messge">
                <div class="messge_nav">聯繫我們</div>
                <div class="message_content">
                  <form action="<?php echo U('Index/update');?>" method="post" id="form_message">
                      <input type='hidden' name='title' value='留言板' id='post_title'>
                      <input type='hidden' name='category_id' value='48'>
                        <input type='hidden' name='model_id' value='10'>
                          <input type='hidden' name='type' value='2'>
                          <input type='hidden' name='description' value=''>
                    <input class="message_input " type="text" name="names" id='post_name' onfocus="if (value == '姓名') {
                          value = ''
                      }" onblur="if (value == '') {
                                  value = '姓名'
                              }" value="姓名" />
                    <input class="message_input" type="text" name="tel" onfocus="if (value == '電話') {
                                          value = ''
                                      }" onblur="if (value == '') {
                                                  value = '電話'
                                              }" value="電話" />
                    <input class="message_input" type="text" name="emails" onfocus="if (value == '郵箱') {
                                                          value = ''
                                                      }" onblur="if (value == '') {
                                                                  value = '郵箱'
                                                              }" value="郵箱" />
                    <textarea class="message_text_area" name="content"></textarea>
                    <input class="message_button" type="submit" value="發送" />
                  </form>
                </div>
              </div>
<script>
window.onload = function(){
    var name = document.getElementById('post_name');
    var title = document.getElementById('post_title');
    name.onblur = function(){
       title.value = "來自"+name.value+"的留言";
    }
}
</script>
<!--/聯繫我們-->
        <div class="col-md-12 copyright text-center"><?php echo C('WEB_COPYRIGHT');?></div>
        <a class="go-top" href="#top"><i class="fa fa-angle-up"></i></a>
        <!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog map-modal">
    <div class="modal-content">
      
      <div class="modal-body m-b-0">
          <div class="gmap3"></div>
      </div>
      
    </div>
  </div>
</div>
        <?php echo C('GOOGLEANALYTICS');?>    
  <script src="/project/sjc/Public/Index/js/jquery.min.js" type="text/javascript"></script>
        <script src="/project/sjc/Public/Index/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="/project/sjc/Public/Index/dist/js/swiper.js" type="text/javascript"></script>
        <script src="/project/sjc/Public/Index/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<!--         <script src="http://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"></script>-->
        <script src="/project/sjc/Public/Index/js/gmap3.min.js" type="text/javascript"></script>
        <script src="/project/sjc/Public/Index/js/sjc.js" type="text/javascript"></script>
       <script type="text/javascript">
$('.shop-map').click(function(){
    $('#myModal').show();
        var map = $(this).attr('data-map').split(',');
         var mapx=map[0];
         var mapy=map[1];
      
$(".gmap3").gmap3({
         
        map:{
        options:{
        center: [mapx,mapy],
                zoom: 15
        }
        }, marker: {
        latLng:[mapx,mapy]
        }
        });
    
  });
 $('.hots').click(function(){
     $('.search-input').attr('value',$(this).html());
     $('#form1').submit();
 }) 
    </script>
	<!-- /主体 -->
</body>
</html>